<?php
	include("connectDB.php");

	$number = $_POST['number'];

	$result = mysql_query("SELECT meetings.meeting_id, locations.name, meetings.agenda, meetings.timedate FROM (SELECT * FROM meetings, locations WHERE meetings.loc_id=locations.loc_id) WHERE meeting_id = (SELECT meeting_id FROM user_meeetings WHERE user=" . $number . ")");

	while($row = mysql_fetch_array($result))
	  {
	  echo $row['meetings.meeting_id'] . "@" . $row['meetings.organizer'] . $row['locations.name'] . "@" . $row['meetings.agenda'] . "@" . $row['meetings.timedate'] .  "\n";
	  //echo "<tr>";
	  //echo "<td>" . $row['name'] . "</td>";
	  //echo "<td>" . $row['latitude'] . "</td>";
	  //echo "<td>" . $row['longitude'] . "</td>";
	  //echo "</tr>";
	  }

	mysql_close($con);
?>